#ifndef __CXMLDTD_INCLUDED__
#define __CXMLDTD_INCLUDED__
#include "c_xml_dtd_node.h"
#endif

#ifndef __STRING_INCLUDED__
#define __STRING_INCLUDED__
#include <string>
#endif


c_xml_dtd_node::c_xml_dtd_node(char * P_1, char * P_2, int n_t, int ob, int tot_ob){

if (C_Node != NULL){
C_Node = new char[strlen(P_1)+1];	
strcpy(C_Node, P_1);
}

if (P_Name != NULL){
P_Name = new char[strlen(P_2)+1];	
strcpy(P_Name, P_2);
}

node_type = n_t;
obligatorio = ob;
total_obligatorios = tot_ob;

}



c_xml_dtd_node::~c_xml_dtd_node(){
	if (C_Node !=NULL){delete[] C_Node;}
	if (P_Name !=NULL){delete[] P_Name;}
}


c_xml_dtd_node::GetValues(char * &P_1, char * &P_2, int &n_t, int &ob, int &tot_ob){

strcpy(P_1,C_Node);
strcpy(P_2,P_Name);
n_t = node_type;
ob = obligatorio;
tot_ob = total_obligatorios;
return(0);
}
